
<script>

$(function(){
//editables 
    $('.username').editable({
           url: '/post',
           type: 'text',
           pk: 1,
           name: 'username',
           title: 'Enter username'
    });


})

</script>


<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<ul class="breadcrumb">
			<li class="active">
				<i class="icon-home home-icon"></i>
				<a href="#">系统首页</a>
			</li>
			<li class="active">
				数据管理
			</li>
			<li class="active">
				潜在客户列表
			</li>
		</ul><!-- .breadcrumb -->
	</div>

	<div class="page-content">
		<div class="row">
			<div class="page-header">
				<h1>潜在客户列表</h1>
			</div>
            <div class="col-xs-12">
			
        
	        </div>
	        <div class="col-md-12 col-sm-12 col-xs-12 form">
	        <form action="<?php echo base_url().'crm/user/potential'?>" method="get">
	        	<div class="row">
	        	  
                   
					
					
                  
                    <div class="col-xs-4 sell_btn">
    	        	
					<a class="btn btn-info btn-sm" href="<?php echo base_url().'crm/user/add_adminer'?>"><i class="icon-copy"></i>新增</a>
    	        	
	                </div>     
	            </div>
	            
	        </div>
	        
	        </form>

        	<div class="col-xs-12 margin_t margin_b">
				<div class="table-responsive  tab">
				<form action="<?php echo base_url()."admin/order/del_some"?>" method="post" id="delForm">
					<table id="sample-table-1" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								
								<th>用户编号</th>
                                <th>用户名</th>
								<th>真实姓名</th>
							
                                <th>添加时间</th>
                                <th>操作</th>
							</tr>
						</thead>

						<tbody>
							<?php if (isset($result)){
                            	foreach ($result as $app){
                            	?>
							<tr>
								
								<td><p><?php  echo $app['id'];?></p></td>
								<td><p><?php  echo $app['user_name']?></p></td>
								<td><p><?php  echo $app['real_name']?></p></td>
							
								<td><p><?php  echo $app['create_time']?></p></td>
								
								<td><p><a class="btn btn-info btn-sm" href="<?php echo base_url().'crm/user/delete_adminer/'.$app['id']?>"><i class="icon-copy"></i>删除</a></p></td>
                               
    						</tr>
    						<?php }
                            }else{?>
                            <tr>
                            	<td colspan="15">无数据</td>
                            </tr>
                            <?php }?>
						</tbody>
					</table>
					</form>
				</div><!-- /.table-responsive -->
			</div>
        
        	
		</div><!-- /.row -->
	</div><!-- /.page-content -->
</div><!-- /.main-content -->
	